Xbasic

Insert Menu Functions

Description

Here are Insert Menu functions available in Alpha Anywhere:

  • Break

    Inserts an HTML command at the cursor location.

  • NonR11;breaking Space

    Inserts an HTML command at the cursor location.

  • Horizontal Line

    Inserts an HTML command at the cursor location..

  • Comment

    Displays the Insert Comment dialog. The dialog inserts the text that you type at the cursor location. The text is surrounded by HTML commands.

  • Symbol

    Displays the ASCII Codes dialog. The dialog inserts the selected character at the cursor location.

  • Form

    Inserts a form element at the cursor location. The options are:

    • Form

    • Textbox

    • Text Area

    • File Upload

    • Checkbox

    • Radio Button

    • Drop-down List

    • Submit Button

    • Push Button

    • Advanced Button

    • Picture

  • Image

    Displays the Select Image dialog. The dialog inserts the selected image with the following HTML code:

    img src="Image_Name""
  • Bookmark

    Displays the Bookmark dialog. The dialog inserts the bookmark name with the following HTML code:

    <a name="Bookmark_Name"></a>
  • Hyperlink

    Displays the Hyperlink dialog. The dialog inserts the hyperlink URL and its description with the following HTML code: URL_Description .

    <a href="URL"></a>
  • ASW Code

    Displays the Insert ASW Code dialog. The dialog inserts the Xbasic code with the following syntax:

    <%a5 Xbasic_Code%>
  • Web Component

    Displays the Insert Component dialog. The command is only available on the WYSIWYG tab after the page has been saved at least once.

  • ActiveX Control

    Displays the Insert ActiveX Control dialog. The dialog inserts the selected ActiveX control wrapped the following HTML code: . Note that most ActiveX controls have additional parameter values that need to be set before they are functional.

Inserting a Comment

To insert a comment:

  1. Position the cursor where the comment should be placed (not between the "<" and ">" of a formatting tag).

  2. Select Insert > Comment.

  3. Type your comment and click OK.

Inserting a Hyperlink

To insert a hyperlink:

  1. Select Insert > Hyperlink to display the Hyperlink dialog.

  2. Select the Type of protocol to use.

  3. Enter the URL.

  4. Click OK to apply your selections or Cancel to discard them.

Inserting an Image

To insert an image:

  1. Position your cursor at the point where the image should be inserted.

  2. Select Insert > Image to display the Select Image dialog.

  3. Click OK to apply your selection.

Inserting Forms

To insert a form into your HTML page:

  1. Display the WYSIWYG tab of your HTML Editor window.

  2. Place your cursor at the insert point.

  3. Select Insert > Form and select the type of control to place inside the form. The options are:

    • Form

    • Textbox

    • Textarea

    • File Upload

    • Check box

    • Radio Button

    • Drop Down List

    • Submit Button

    • Push Button

    • Advanced Button

    • Picture

The entries you see above produce the following HTML code.

  • Form

    <FORM method="post"><INPUT 
     type="submit" value="Submit"><INPUT type="reset" 
     value="Reset"></FORM>
    images/WP_HTML_Form.gif
  • Textbox

    <FORM method="post"><INPUT 
     id="textbox1" name="textbox1" ></FORM>
    images/WP_HTML_Textbox.gif
  • Text Area

    <FORM method="post"><TEXTAREA 
     id=textarea1 name=textarea1></TEXTAREA></FORM>
    images/WP_HTML_TextArea.gif
  • File Upload

    <FORM method="post"><TEXTAREA 
     id=textarea1 name=textarea1></TEXTAREA></FORM>
    images/WP_HTML_TextArea.gif
  • File Upload

    <FORM method="post" enctype="multipart/form-data"><INPUT 
     type="file" name="upload1" id="upload1"><BR 
     ><INPUT type="submit" name="upload1Submit" value="Upload 
     File"></FORM>
    images/WP_HTML_FileUpLoad.gif
  • Checkbox

    <FORM method="post"><INPUT 
     type="checkbox" id="checkbox1" name="checkbox1" 
     value=".t."></FORM>
    images/WP_HTML_CheckBox.gif
  • Radio Button

    <FORM method="post"><INPUT 
     type="radio" id="radio1" name="radio1" value=".t."></FORM>
    images/WP_HTML_RadioButton.gif
  • Drop-down List

    <FORM method="post"><SELECT 
     id="dropdown1" name="dropdown1"></SELECT></FORM>
    images/WP_HTML_DropDownList.gif
  • Submit Button

    <FORM method="post"><INPUT 
     type="submit" id="submit1" name="submit1" 
     value="Submit Query"></FORM>
    images/WP_HTML_SubmitButton.gif
  • Push Button

    <FORM method="post"><INPUT 
     type="button" id="button1" name="button1"></FORM>
    images/WP_HTML_PushButton.gif
  • Advanced Button

    <FORM method="post"><BUTTON 
     id="button_adv1" name="button_adv1"></BUTTON></FORM>
    images/WP_HTML_AdvancedButton.gif
  • Picture

    <FORM method="post"><INPUT 
     type="image" id="image1" name="image1" src="</span> 
     <span class=Argument>Image_Name</span> <span class=HTML1>"></FORM>
    images/WP_HTML_Picture.gif

Inserting an ActiveX Control

To insert an ActiveX control into a HTML or .A5W page.

  1. Position the cursor in the HTML file.

  2. Select Insert > ActiveX Control to display the Insert ActiveX Control dialog.

  3. Select a control and click Insert.

  4. If necessary, define properties for the control.

  5. Click OK.

Inserting A5W Code

A5W code is embedded Xbasic code that connects an HTML page to Alpha Anywhere, enabling the display and modification of data. To insert A5W code:

  1. Display the Source tab of your HTML Editor window.

  2. Position the cursor at the code insertion point.

  3. Click or select Insert > A5W Code to display the Insert A5W Code dialog.

  4. Enter the Xbasic code and press OK.

    images/UG_Insert_A5W_Code.gif

The Xbasic code above was formatted as follows.

Inserting and Deleting Web Components

For information about inserting and deleting web components into and from HTML pages (which must be saved now with the .A5W extension), refer to Building ASW Web Pages.

Limitations

Web publishing applications only.

See Also